package com.wj.ch2.event;

import org.springframework.context.ApplicationEvent;

/**
 * @program: wj_springBoot
 * @description: 学习事件监听  自定义事件
 * @author: wj
 * @create: 2021-10-21 14:53
 **/
public class DemoEvent extends ApplicationEvent {

    private static final long serialVersionUID=1L;

    private String msg;

    public DemoEvent(Object source,String msg) {
        super(source);
        this.msg= msg;
    }

    public String getMsg() {
        return msg;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
}
